import request from '@/utils/request'

// 查询志愿填报列表
export function listAspiration(query) {
  return request({
    url: '/zyt/aspiration/list',
    method: 'get',
    params: query
  })
}

// 查询志愿填报详细
export function getAspiration(id) {
  return request({
    url: '/zyt/aspiration/' + id,
    method: 'get'
  })
}

// 新增志愿填报
export function addAspiration(data) {
  return request({
    url: '/zyt/aspiration',
    method: 'post',
    data: data
  })
}

// 修改志愿填报
export function updateAspiration(data) {
  return request({
    url: '/zyt/aspiration',
    method: 'put',
    data: data
  })
}

// 删除志愿填报
export function delAspiration(id) {
  return request({
    url: '/zyt/aspiration/' + id,
    method: 'delete'
  })
}
